package test
{
	import flash.utils.setInterval;
	
	import test.loader.QueueLoaders;

	public class QueueLoaderTest
	{
		public function QueueLoaderTest()
		{
			var urls:Array = [];
			var url:String = "assets/map_grids/";
			
			var png:String = ".png";
			for(var i:int = 0;i<10;i++){
				for(var j:int = 0;j<10;j++){
					urls.push(url+i+"_"+j+png);
				}
			}
			
			var ql:QueueLoaders = new QueueLoaders();
				ql.setupUrls(urls);
			
			addChild(ql);
			
			setInterval(function():void{
				ql.startLoad();
//				ql.setupUrls(urls);
			},2000);
		}
	}
}